const http = require('http');
let total = 0;
const server = http.createServer((req, res) => {
	res.writeHead(200, { 'Content-Type': 'text/plain' });
	res.end(total + '');
});
server.listen(8001);

console.log(http.globalAgent);